﻿/* Nibiru Studio Engine Version [1062] */
#include "PosUtil.h"
using namespace std;

void PosUtil::normalToCenter(const std::pair<float, float>& srcPos,
    const float& width, const float& height,
    std::pair<float, float>& destPos)
{
    float wRadius = width * 0.5f;
    float hRadius = height * 0.5f;
    destPos.first = srcPos.first * width - wRadius;
    destPos.second = -srcPos.second * width + hRadius;
}
